<template>
  <el-row>
    <el-col :span="8">
      <el-card class="box-card">
        <div class="user">
          <img src="../assets/images/user.jpg" alt="">
          <div class="user-info">
            <p class="name">Worker</p>
            <p class="access">产线员工</p>
          </div>
        </div>
        <div class="login-info">
          <p>上次登录时间:<span>2023-10-29</span></p>
          <p>系统使用时长:<span>8h</span></p>
        </div>
      </el-card>
      <el-card style="margin-top: 20px;height: auto">
        <el-table
            :data="tableData"
            style="width: 100%">
          <!-- <el-table-column
            prop="name"
            label="问题流程">
          </el-table-column>
          <el-table-column
            prop="date"
            label="日期">
          </el-table-column>
          <el-table-column
            prop="issolved"
            label="是否解决">
          </el-table-column> -->
          <el-table-column v-for="(val, key) in tableLabel" :prop="key" :label="val" :key="key"/>
        </el-table>
      </el-card>
    </el-col>
    <el-col :span="16"></el-col>
  </el-row>
</template>
<script>
export default {
  data() {
    return {
      tableData:[
                {
                    name:'基板装配上板',
                    date:'2023-10-29',
                    issolved:'未完成'
                },
                {
                    name:'烧写程序',
                    date:'2023-10-29',
                    issolved:'未完成'
                },
                {
                    name:'基板调试',
                    date:'2023-10-29',
                    issolved:'未完成'
                },
                {
                    name:'整机装配主板配件',
                    date:'2023-10-29',
                    issolved:'未完成'
                },
                {
                    name:'整机调试',
                    date:'2023-10-29',
                    issolved:'未完成'
                },        {
                    name:'FQC检验',
                    date:'2023-10-29',
                    issolved:'未完成'
                }
            ],
            tableLabel:{
                name:'问题流程',
                date:'日期',
                issolved:'是否解决'
            },
            processData:[
              {
                id:1,
                name:"基板装配上板",
                icon:"set-up",
                color:"#2ec7c9",
              },
              {
                id:2,
                name:"烧写程序",
                icon:"edit",
                color:"#ffb980",
              },
              {
                id:3,
                name:"基板调试",
                icon:"setting",
                color:"#5ab1ef",
              },
              {
                id:4,
                name:"整机装配",
                icon:"circle-plus-outline",
                color:"#2ec7c9",
              },
              {
                id:5,
                name:"整机调试",
                icon:"success",
                color:"#ffb980",
              },
              {
                id:6,
                name:"FQC检验",
                icon:"document-checked",
                color:"#5ab1ef",
              },
              {
                id:7,
                name:"包装入库",
                icon:"receiving",
                color:"#2ec7c9",
              },
              {
                id:8,
                name:"出货",
                icon:"sold-out",
                color:"#ffb980",
              }
            ],
          dialogVisible: false,
          form:{
            data:'',
            delivery: false,
            type: [],
            resource: '',
            desc: ''
          }
    }
  }
}
</script>
<style lang="less" scoped>
    .user{
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #ccc;
        display: flex;
        align-items: center;
        img{
            margin-right: 40px;
            width: 150px;
            height: 150px;
            border-radius: 50%;
        }
        .user-info{
            .name{
                font-size: 32px;
                margin-bottom: 10px;
            }
            .access{
                color: #999999;
            }
        }
    }
    .login-info{
        p{
            line-height: 28px;
            font-size: 14px;
            color: #999999;
            span{
                margin-left: 100px;
                color: #666666;
            }
        }
    }
    .process{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .icon{
        width: 80px;
        height: 80px;
        font-size: 30px;
        text-align: center;
        line-height: 80px;
        color: #ffffff;
      }
      .detail{
        margin-left: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        .dec{
          font-size: 30px;
          margin-bottom: 10px;
          line-height: 30px;
          height: 30px;
        }
        .num{
          font-size: 14px;
          color: #999999;
        }
      }
      .el-card{
        width: 48%;
        margin-bottom: 20px;
      }
    }
</style>